export const useEventListener = (eventName, callback) => {
  onMounted(() => {
    console.log(111);
    window.addEventListener(eventName, callback);
  });
  onUnmounted(() => {
    console.log(222);
    window.removeEventListener(eventName, callback);
  });
};

export const useDemo = () => {
  console.log('demo');
  onMounted(() => {
    console.log(4244);
  });
};
